<script setup>
// 有1个按钮的提示页面,包括成功提交,重复提交,提交失败,反馈
import { check } from '@/apis/testAPI';

check().then(res=>{
    if(res.data.code==1200){
    //如果用户没有登录，指向动态登录界面
    var a = document.createElement('a');
    a.setAttribute('href', 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdadd0122365919e8&scope=snsapi_userinfo&response_type=code&redirect_uri=http://175.178.62.164:61803/wxuser/getSignUpUserInfo?url=/feedBack-FB&expires_in=3600#wechat_redirect');
    a.setAttribute('target', '_blank');
    a.setAttribute('id', 'redict');
// 防止反复添加
    if(document.getElementById('redict')) {
	    document.body.removeChild(document.getElementById('redict'));
    }
    document.body.appendChild(a);
    a.click();
    }
}).catch(err=>{
    console.log(err);
})
</script>

<template>
    <div class="box">
        <div class="main_box">
            <div class="box1">
                <!-- <svg class="icon" aria-hidden="true"><use xlink:href="#icon-jundui"></use></svg> -->
                <svg t="1699429483676" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14012" id="mx_n_1699429483677" width="200" height="200"><path d="M396.997 246.372c1.5-7.438 1.5-15.377 3.75-22.44h307.54c5.064 15.627 8.439 32.129 8.439 49.444 0 89.637-72.572 162.146-162.021 162.146-72.01 0-132.705-47.256-153.833-112.265 17.565-23.565 15.315-55.382-3.875-76.885zM290.734 961.09h78.76l-2.626-87.51-76.134 87.51z m532.193-356.92c11.752 23.877 30.755 208.213 44.882 356.92H756.794L733.73 722.684l-7.438 238.406H383.12l-7.376-238.406s-1.625-31.567-7.376-60.07l-278.037-3.312c-18.19-0.25-34.817-10.877-42.442-27.379-8.189-16.44-5.564-36.13 5.938-50.256l16.69-20.628c1.313-3.376 3.438-6.501 5.689-9.377l239.156-295.038c16.314-20.628 46.568-23.69 66.883-7.064 20.503 16.502 23.69 46.444 7.064 66.946v0.312L227.726 517.533l174.022-24.253c0.376-0.063 0.875 0.187 1.25 0.062 35.13-12.939 79.385-19.878 136.143-19.878h31.192c151.144 0 212.777 49.444 252.594 130.705z m-95.574-85.887c-18.19-9.751-39.568-17.627-65.321-22.816L402.935 958.902h78.01l246.408-440.619z m-46.444-456.06H428.127L400.748 198.93h307.54L680.91 62.223z m187.837 372.174l-5.375-5.313 77.197-77.448 5.688 5.25 34.505-34.942-18.565-18.502-34.941 34.88 2.375 2.437-77.073 77.385-16.377-16.19-25.44-25.44-12.44 12.315 25.879 25.628-73.447 73.447-12.188-4.5-7 6.813c21.064 10.376 39.441 23.878 55.631 40.192l81.571-96.012z" p-id="14013" fill="#f2ec75"></path></svg>
                <p class="p1">提交成功</p>
                <p>我们会尽快联系您</p>
                <van-button size="normal" round="" plain="" type="success" class="van-b" to='/index'>完成</van-button>
            </div>
        </div>
    </div>
</template>

<style scoped>
.box{
    background-color: #f7fcff;
    height: 100vh;
}
.main_box{
    position: relative;
    top: 200px;
}
.box1{
    width: 300px;
    margin:0 0 20px 40px;
}
p{  
    padding:0 30px 0 30px;
    position: relative;
    margin: 0;
    font-size: 25px;
    text-align: center;
}
.p1{
    padding: 0 30px 0 30px;
}
.icon {
  width: 12em;
  height: 4em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
  padding-left:55px;
}
.van-b{
    margin-top:15px;
    position: relative;
    left: 25%;
    color: white;
    width: 50%;
    border: 0;
    background-color: #749ff7;
}
</style>